//C11:ep11_7.c: three students scores,used staic linklist.
#include<stdio.h>

struct student_st
{
    long num;
    float score;
    struct student_st *next;
};

int main() {
    struct student_st a,b,c, *head, *p;

    a.num = 10101;
    a.score = 89.5;

    b.num = 10103;
    b.score = 90.0;

    c.num = 10107;
    c.score = 85.0;

    head = &a;
    a.next = &b;
    b.next = &c;
    c.next = NULL;
    p = head;    // p point to head(a)

    do {
        printf("%ld %5.2f\n",p->num, p->score);
        p = p->next;
    }while (p != NULL);
    printf("\nHello\n");
}